﻿using Autofac.Extras.DynamicProxy;
using MDT.LifeSewagePlatform.Conmmon;
using MDT.LifeSewagePlatform.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MDT.LifeSewagePlatform.InterfaceService
{
    [Intercept(typeof(CustomAutofacAop))]
    public interface IDetailService
    {
        public  Task<List<DetailEntity>> GetDetails(int MainID);


        public Task<List<DetailEntity>> GetDetails(int MainID, int ParentID);


        public Task<List<DetailEntity>> Find(int ID);

        public  Task<bool> AddArea(AddArea addArea);
       

        public  Task<bool> AddCity(AddArea addArea);

        public  Task<bool> AddProvince(AddArea addArea);

        public  Task<bool> UpdateArea(AddArea addArea, int ID);
       

        public  Task<PageList<DetailView>> GetDetails(DetailParameter Params);
       
        public  Task<DetailView> GetDetailsByID(int ID);

        public  Task<bool> Delete(int ID);

    }
}
